﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Labthink.PCSoft.UniversalHost4.Model
{
    [DebuggerDisplay("{Type,nq},ZeroValue={ZeroValue,nq},EndValue={EndValue,nq},ZeroAd={ZeroAd,nq},EndAd={EndAd,nq}")] //nq:No Quote 去掉最终显示的引号
    public class SensorCali
    {
        [XmlAttribute]
        public string Type { get; set; }

        [XmlAttribute]
        public double ZeroValue { get; set; }

        [XmlAttribute]
        public double EndValue { get; set; }

        [XmlAttribute]
        public int ZeroAd { get; set; }

        [XmlAttribute]
        public int EndAd { get; set; }

        [XmlAttribute]
        public DateTime LastCaliTime { get; set; }
    }

    [XmlRoot("SensorCaliInfo")]
    public class SensorCaliInfo
    {
        [XmlArray]
        public List<SensorCali> SensorCalis { get; set; }
    }
}
